import java.util.Objects;

public class Order {
    int orderID;
    String orederName;
    public Order() {

    }

    public Order(int orderID, String orederName) {
        this.orderID = orderID;
        this.orederName = orederName;
    }

    public int getOrderID() {
        return orderID;
    }

    public void setOrderID(int orderID) {
        this.orderID = orderID;
    }

    public String getOrederName() {
        return orederName;
    }

    public void setOrederName(String orederName) {
        this.orederName = orederName;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Order order = (Order) o;
        return orderID == order.orderID && Objects.equals(orederName, order.orederName);
    }

    @Override
    public String toString() {
        return "Order{" +
                "orderID=" + orderID +
                ", orederName='" + orederName + '\'' +
                '}';
    }
}
